<?php

namespace app\controllers\admin\uni\system;

use app\controllers\admin\base\AdminController;
use app\models\system\SetBird as Model;

class BirdController extends AdminController
{
    public function actionFetch()
    {
        $model = Model::getLastOne();

        return $this->success($model);
    }

    public function actionSave()
    {
        $data = $this->post();

        if (Model::saveData($data)) {
            return $this->success();
        }

        return $this->fail();
    }

}